package indi.zhifa.study2024.nbr.busycore.gen.busy.account.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import indi.zhifa.core.mpenhance.entity.po.BaseEntity;
import indi.zhifa.core.mpenhance.entity.po.PureBaseEntity;
import indi.zhifa.study2024.nbr.busycore.gen.busy.account.po.json.RoleInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 织法
 * @since 2024-12-26
 */
@Data
@TableName(value = "user", autoResultMap = true)
@Schema(title = "GenUserEntity对象", description = "用户表")
public class GenUserEntity extends BaseEntity {

    @Schema(title = "企业Id")
    private Long enpId;

    @Schema(title = "企业码")
    private String enpCode;

    @Schema(title = "用户名")
    private String userName;

    @Schema(title = "密码")
    private String passwd;

    @Schema(title = "用户昵称")
    private String nickName;

    @TableField(typeHandler = Fastjson2TypeHandler.class)
    @Schema(title = "角色Id列表")
    private List<RoleInfo> roles;

    @Schema(title = "片区")
    private String domains;


}
